@extends('admin.masterShow')
@section('content')

<div class="container-fluid" id="destacados">
    <div class="row">
        <div class="col-lg-12">
            <h3>The Apartment</h3>
        </div>
        <div class="col-md-6 col-sm-6">
            @if( !$images->isEmpty() )
                @foreach($images as $image)
                <img class="lazy img-full" data-original="{{ URL::to($image->img->url('apartment')) }}" alt="{{ $image->title }}"/>
                {{ HTML::epigrafe ($image->title) }}
                @endforeach
            @endif
        </div>
        <div class="col-md-6 col-sm-6">
            <p><b>{{ $apartment->fecha_formatted() }}</b> </p>
            <p>{{ $apartment->lugar }}</p>
            <p>{{ $apartment->texto }}</p>
            <br>
            {{--*/ $titulo= 'Apartment '. $apartment->fecha_formatted() /*--}}
            @include('compartir', ['titulo' => $titulo])
            <hr>
            <div class="row">
                <div class="col-md-8">
                    <form role="form">
                        <div class="form-group">
                            <label for="inputNombre">Nombre</label>
                            <input type="text" class="form-control" id="inputNombre">
                        </div>
                        <div class="form-group">
                            <label for="inputEmail">Email</label>
                            <input type="email" class="form-control" id="inputEmail">
                        </div>
                        <button type="submit" class="btn btn-default">Inscribirse</button>
                    </form>
                </div>
            </div>
            <hr>
            @if( !$otrosApartments->isEmpty() )
                <h4>Otros</h4>
                <ul class="list-inline">
                    @foreach ($otrosApartments as $apartment)
                        <li><a href="{{ URL::route('apartment', ['fecha'=> $apartment->fecha->toDatestring(), 'id' => $apartment->id] ) }}">{{ $apartment->fecha_formatted() }}</a></li>
                        <li>|</li>
                    @endforeach
                </ul>
            @endif
        </div>
    </div>
    <br>
</div>
@stop